<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta content="width=device-width,initial-scale=1,maximum-scale=1" name="viewport">
    <meta content="telephone=no,email=no,address=no" name="format-detection">
    <meta content="on" http-equiv="x-dns-prefetch-control">
    <meta name="renderer" content="webkit" />
    <meta name="keyword" content="" />
    <meta name="description" content="" />
    <title>虚拟货币</title>
    <link rel="stylesheet" href="../../../static/css/reset.css">
    <link rel="stylesheet" href="../../../static/vendor/toastify/toastify.min.css">
    <link rel="stylesheet" href="../../../static/css/main.css">
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="../../../static/vendor/html5shiv.min.js"></script>
    <script src="../../../static/vendor/respond.min.js"></script>
    <script>
        alert("您的浏览器版本过低请升级！");
        location.href = "http://outdatedbrowser.com/zh-cn";
    </script>
    <![endif]-->
</head>
<body class="model-body">
<div id="app">
    <div class="model-page">
        <form id="add-card">
            <div class="model-form add-card-form">
                <div class="model-form-item">
                    <div class="item-label">
                        开户姓名：<span class="warn">银行卡账号必须与您的实名认证姓名一致。</span>
                    </div>
                    <div class="item-control">
                        <input name="name" type="text" class="model-text" />
                    </div>
                </div>
                <div class="model-form-item">
                    <div class="item-label">
                        银行卡号：
                    </div>
                    <div class="item-control">
                        <input name="card_id" type="text" class="model-text" />
                    </div>
                </div>
                <div class="model-form-item">
                    <div class="item-label">
                        确认银行卡号：
                    </div>
                    <div class="item-control">
                        <input name="confirm_card_id" type="text" class="model-text" />
                    </div>
                </div>
                <div class="model-form-item">
                    <div class="item-label">
                        开户银行：
                    </div>
                    <div class="item-control">
                        <select name="bank" class="model-text">
                            <option value="1">中国农业银行</option>
                            <option value="1">中国交通银行</option>
                            <option value="1">中国工商银行</option>
                            <option value="1">中国银行</option>
                            <option value="1">中国农业银行</option>
                            <option value="1">中国交通银行</option>
                            <option value="1">中国工商银行</option>
                            <option value="1">中国银行</option>
                        </select>
                    </div>
                </div>
                <div class="model-form-item model-form-item-special">
                    <div class="item-label">
                        开户地址：
                    </div>
                    <div class="item-control">
                        <div class="address">
                            <div id="select-address">
                                <select class="model-text"></select>
                                <select class="model-text"></select>
                                <select class="model-text"></select>
                            </div>
                            <div class="address-detail">
                                <input placeholder="请输入详细地址" class="model-text" type="text">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="model-form-item">
                    <div class="item-label">
                        短信验证码：
                    </div>
                    <div class="item-control">
                        <input name="name" type="text" class="model-text  model-text-special" />
                        <button class="get-code">获取验证码</button>
                    </div>
                </div>
                <div class="model-form-item model-form-item-special">
                    <div class="item-control">
                        <button class="model-btn submit-btn">确认</button>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
<script src="../../../static/vendor/jquery.min.js"></script>
<script src="../../../static/vendor/layer/layer.js"></script>
<script src="../../../static/vendor/jquery.validate/jquery.validate.min.js"></script>
<script src="../../../static/vendor/jquery.validate/jquery.validate.extend.js"></script>
<script src="../../../static/vendor/toastify/toastify-js.js"></script>
<script src="../../../static/vendor/distpicker/distpicker.data.js"></script>
<script src="../../../static/vendor/distpicker/distpicker.js"></script>
<script src="../../../static/vendor/vue.min.js"></script>
<script src="../../../static/vendor/vue-i18n.min.js"></script>
<script src="../../../static/js/main.js"></script>
<script>

    $(function(){

        $(".submit-btn").on("click",function(){
            $("#add-card").validate({
                rules: {
                    name: {
                        required: true
                    },
                    country: {
                        required: true
                    },
                    paper_type: {
                        required: true
                    },
                    paper_code: {
                        required: true
                    }
                },
                messages: {
                    name: "请输入真实姓名",
                    country: "请选择国家/地区",
                    paper_type: "请选择证件类型",
                    paper_code: "请输入证件号码"
                },
                submitHandler:function(form){
                    myToast("在这里提交~",'info');
                }
            })
        });

        //保证
        $('#select-address').distpicker({
            province: '-- 所在省 --',
            city: '-- 所在市 --',
            district: '-- 所在区 --'
        });

        //获取验证码
        $(".get-code").each(function(){
            $(this).on("click",function(){
                getCode(this,60)
            })
        });

    })

</script>
</body>
</html>